package com.tlgen.spring.service.impl;

import com.tlgen.spring.annotation.Autowired;
import com.tlgen.spring.annotation.Service;
import com.tlgen.spring.annotation.Value;
import com.tlgen.spring.service.SysUserService;
import com.tlgen.spring.service.SysDeptService;

@Service
public class SysUserServiceImpl implements SysUserService {

    @Value("${api.transport.air.url}")
    private String airUrl;

    @Autowired
    private SysDeptService deptService;

    @Override
    public String test() {
        System.out.println("airUrl 的值: " + airUrl);
        System.out.println("deptService 的值: " + deptService);
        String select = deptService.select();
        System.out.println("调用 deptService.select 返回的值: " + select);
        return "test 方法";
    }

}
